package cn.cxyxj;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.gateway.route.RouteLocator;
import org.springframework.cloud.gateway.route.builder.RouteLocatorBuilder;
import org.springframework.context.annotation.Bean;

import java.time.ZonedDateTime;

@SpringBootApplication
@EnableDiscoveryClient
public class Gateway9008Application {

    public static void main(String[] args) {
        System.out.println(ZonedDateTime.now());
        SpringApplication.run(Gateway9008Application.class, args);
    }

//    @Bean
//    RouteLocator routeLocator(RouteLocatorBuilder builder) {
//        return builder.routes().
//                route("gateway-consumer-start-route", j -> j.path("/api/gateway-consumer/**")
//                        .filters(f -> f.stripPrefix(1))
//                        .uri("http://127.0.0.1:9009"))
//                .build();
//    }
}
